Feature: Crear un nuevo post, agregarle url y publicarlo,validar la url, eliminar el post y validar nuevamente la url
Scenarios
|
Chart |
Status Progress |
||||
|---|---|---|---|---|---|
|
1
|
|
||||
| Total duration: | |||||
| 1m 10.744s |
Scenario: Como autor creo un post con url, navego a la url, lo elimino y luego valido que no existe la pagina
Before
0m 3.180s
Given
I go to page "<HOST>" "ghost/#/signin"
0m 6.828s
And
I sign in with "<USERNAME>" and "<PASSWORD>"
0m 1.827s
When
I click new post
0m 2.105s
And
I set post attributes title "$number_1" and body "$string_1"
0m 1.063s
And
I press settings button
0m 0.856s
And
I set url field to "$name_2"
0m 0.834s
And
I close settings menu
0m 0.847s
And
I publish the post
0m 1.500s
And
I go to page "<HOST>" "$$name_2"
0m 8.288s
Then
I check page full title with "$$number_1"
0m 6.173s
And
I go to page "<HOST>" "ghost/#/posts?type=published"
0m 6.452s
And
I Click a post with title "$$number_1"
0m 3.222s
And
I press settings button
0m 0.803s
And
I click delete from settings
0m 5.922s
And
I delete post
0m 6.045s
And
I go to page "<HOST>" "ghost/#/posts?type=published"
0m 6.119s
Then
I validate the post with "$number_1" not exists
0m 1.291s
And
I go to page "<HOST>" "$$name_2"
0m 6.200s
Then
I can not get page
0m 1.164s
After
0m 0.025s
Screenshots
Before
NO IMAGE AVAILABLE
Given
I go to page "<HOST>" "ghost/#/signin"
And
I sign in with "<USERNAME>" and "<PASSWORD>"
When
I click new post
And
I set post attributes title "$number_1" and body "$string_1"
And
I press settings button
And
I set url field to "$name_2"
And
I close settings menu
And
I publish the post
And
I go to page "<HOST>" "$$name_2"
Then
I check page full title with "$$number_1"
And
I go to page "<HOST>" "ghost/#/posts?type=published"
And
I Click a post with title "$$number_1"
And
I press settings button
And
I click delete from settings
And
I delete post
And
I go to page "<HOST>" "ghost/#/posts?type=published"
Then
I validate the post with "$number_1" not exists
And
I go to page "<HOST>" "$$name_2"
Then
I can not get page
After
NO IMAGE AVAILABLE